-- GENERATED SPELL FOR [Dustbelcher Mystic] --


function spell0_2907(pUnit, Event) --@Earth Shock,n/a--
pUnit:FullCastSpellOnTarget(13281,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2907', 2338, 1)
end

function spell1_2907(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2907', 3000, 1)
end

function Sorts_2907(pUnit, Event)
local choix_sorts_2907 = math.random(0, 1)
if choix_sorts_2907 == 0 then
pUnit:RegisterEvent('spell0_2907', 1, 1)
end
if choix_sorts_2907 == 1 then
pUnit:RegisterEvent('spell1_2907', 1, 1)
end
end

function mob2907_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2907', math.random(1500, 3000), 1)
end

function mob2907_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2907_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2907_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2907, 1, 'mob2907_Action')
RegisterUnitEvent(2907, 2, 'mob2907_Leave')
RegisterUnitEvent(2907, 3, 'mob2907_Kill')
RegisterUnitEvent(2907, 4, 'mob2907_Die')
